<template>
    <div class="userWrap">
        <!-- 面包屑导航区域 -->
        <el-breadcrumb separator=">">
            <el-breadcrumb-item>当前位置：会员管理</el-breadcrumb-item>
            <el-breadcrumb-item>{{location}}</el-breadcrumb-item>
        </el-breadcrumb>
        <el-container>
            <el-aside width="180px">
                <router-link to="/Usermanage/Userlist" class="userAsideItem">
                    <div @click="location = '会员列表'">
                        <img src="@/assets/home/user.png">   
                        <span>会员列表</span>
                    </div>
                </router-link>
                <router-link to="/Usermanage/blacklist" class="userAsideItem">
                    <div @click="location = '黑名单'">
                        <img src="@/assets/home/usersuo.png">
                        <span>黑名单</span>
                    </div>
                </router-link>
                <router-link to="/Usermanage/banIplist" class="userAsideItem">
                    <div @click="location = '已封禁'">
                        <img src="@/assets/home/usersuo.png">
                        <span>已封禁</span>
                    </div>
                </router-link>
            </el-aside>
            <el-main>
                <router-view></router-view>
            </el-main>
        </el-container>
    </div>
</template>

<script>
export default {
    data() {
        return {
            oneTab:true,
            twoTab:false,
            location:'会员列表'
        }
    },
    methods:{
        
    }
    
}
</script>

<style scoped>
.userWrap{
    height: calc(100vh - 60px);
}
.el-main{
    padding: 0;
    background-color: #ededed;
}
.el-aside {
    background-color: #263238;
    height: calc(100vh - 100px);
    color: #888f92;
}
.el-breadcrumb{
    height: 40px;
    font-size: 14px;
    color: #808185;
    line-height: 40px;
    padding-left: 20px;
    background-color: #fff;
}

.userAsideItem{
    height: 40px;
    line-height: 36px;
    margin: 16px 0;
    display: block;
    color: #fff;
    text-decoration: none;
}
.userAsideItem img{
    width: 16px;
    height: 16px;
    vertical-align: middle;
    margin: 0 10px 0 26px;
}
.userAsideItem span{
    font-size: 16px;
    vertical-align: middle;
}

.router-link-active{
    width: 176px;
    height: 40px;
    background-color: #000;
    color: #fff;
    border-left: 4px solid #2ad198;
    line-height: 36px;
    margin: 16px 0;
    display: block;
    text-decoration: none;
}
.router-link-active img{
    width: 16px;
    height: 16px;
    vertical-align: middle;
    margin: 0 10px 0 22px;
}
.router-link-active span{
    font-size: 16px;
    vertical-align: middle;
}
</style>